import Vue from 'vue'
import App from './App.vue'
import createRouter from './router'
import createStore from './store'

export default function () {
  const router = createRouter()
  const store = createStore()
  const app = new Vue({
    render: h => h(App),
    router,
    store
  })
  return { app, router, store }
}